<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use DateTimeInterface;
use DB;

class Linkslistsipblack extends Model
{
    protected $table = 'links_lists_ip_black';
    protected $primaryKey = 'id';

    protected function serializeDate(DateTimeInterface $date)
    {
        return $date->format($this->dateFormat ?: 'Y-m-d H:i:s');
    }

    public static function getLinksIpBlack($ip)
    {
        return self::where("ip",$ip)->first();
    }
}
